<?php
namespace MyContent\Controller;

use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class AuthControllerFactory implements FactoryInterface
{
	public function createService(ServiceLocatorInterface $serviceLocator)
	{
		$ctr = new AuthController();
		$ctr->setLoginForm(new \MyContent\Form\Login());
		
		$ctr->setAuthService($serviceLocator->getServiceLocator()
				->get('authService'));
		
		return $ctr;
		
		
	}
}
